<template>
  <div>
    <div>
      <el-button type="primary" @click="opendialog">电子货币转账</el-button>
    </div>
    <user-financial-list ref="flist" :uBusinessType="1"></user-financial-list>
    <el-dialog :visible.sync="showdialog" title="电子货币转账">
      <transferEdit @transferSuccessed="transferSuccessed" ></transferEdit>
    </el-dialog>
  </div>
</template>

<script>
import userFinancialList from '../users/userFinancialList'
import transferEdit from './transferEdit'

export default {
  name: 'transferList',
  components: {
    userFinancialList,
    transferEdit
  },
  data() {
    return {
      q: {
        startPage: 1,
        pageCount: 30
      },
      total: 0,
      list: [],
      showdialog: true
    }
  },
  created() {
    this.showdialog = false
  },
  methods: {
    opendialog() {
      // this.resetForm()
      this.showdialog = true
    },
    transferSuccessed() {
      this.showdialog = false
      this.$refs['flist'].getList()
    }
  }
}
</script>
